Correct localtime_r() emulation on Win32. Remove a couple of unnecessary
authorTor Lillqvist <tml@iki.fi>
Mon, 8 Mar 2004 00:55:21 +0000 (00:55 +0000)
committerTor Lillqvist <tml@src.gnome.org>
Mon, 8 Mar 2004 00:55:21 +0000 (00:55 +0000)
2004-03-08  Tor Lillqvist  <tml@iki.fi>

* tests/testfilechooser.c: Correct localtime_r() emulation on Win32.
Remove a couple of unnecessary Win32-only includes.

ChangeLog
ChangeLog.pre-2-10
ChangeLog.pre-2-4
ChangeLog.pre-2-6
ChangeLog.pre-2-8
tests/testfilechooser.c

index abe8536f4694462d8dc4e1dd490fab2b430b97af..58a311adf418236d53ce0d1d9fe9207e22c6945a 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -8,6 +8,9 @@
 
        * gtk/gtk.def: Small update. Thanks to J. Ali Harlow. Re-sorted.
 
+       * tests/testfilechooser.c: Correct localtime_r() emulation on
+       Win32. Remove a couple of unnecessary Win32-only includes.
+
 Mon Mar  8 01:06:17 2004  Matthias Clasen  <maclas@gmx.de>
 
        * tests/testentrycompletion.c: Test dynamic addition/removal. 
index abe8536f4694462d8dc4e1dd490fab2b430b97af..58a311adf418236d53ce0d1d9fe9207e22c6945a 100644 (file)
@@ -8,6 +8,9 @@
 
        * gtk/gtk.def: Small update. Thanks to J. Ali Harlow. Re-sorted.
 
+       * tests/testfilechooser.c: Correct localtime_r() emulation on
+       Win32. Remove a couple of unnecessary Win32-only includes.
+
 Mon Mar  8 01:06:17 2004  Matthias Clasen  <maclas@gmx.de>
 
        * tests/testentrycompletion.c: Test dynamic addition/removal. 
index abe8536f4694462d8dc4e1dd490fab2b430b97af..58a311adf418236d53ce0d1d9fe9207e22c6945a 100644 (file)
@@ -8,6 +8,9 @@
 
        * gtk/gtk.def: Small update. Thanks to J. Ali Harlow. Re-sorted.
 
+       * tests/testfilechooser.c: Correct localtime_r() emulation on
+       Win32. Remove a couple of unnecessary Win32-only includes.
+
 Mon Mar  8 01:06:17 2004  Matthias Clasen  <maclas@gmx.de>
 
        * tests/testentrycompletion.c: Test dynamic addition/removal. 
index abe8536f4694462d8dc4e1dd490fab2b430b97af..58a311adf418236d53ce0d1d9fe9207e22c6945a 100644 (file)
@@ -8,6 +8,9 @@
 
        * gtk/gtk.def: Small update. Thanks to J. Ali Harlow. Re-sorted.
 
+       * tests/testfilechooser.c: Correct localtime_r() emulation on
+       Win32. Remove a couple of unnecessary Win32-only includes.
+
 Mon Mar  8 01:06:17 2004  Matthias Clasen  <maclas@gmx.de>
 
        * tests/testentrycompletion.c: Test dynamic addition/removal. 
index abe8536f4694462d8dc4e1dd490fab2b430b97af..58a311adf418236d53ce0d1d9fe9207e22c6945a 100644 (file)
@@ -8,6 +8,9 @@
 
        * gtk/gtk.def: Small update. Thanks to J. Ali Harlow. Re-sorted.
 
+       * tests/testfilechooser.c: Correct localtime_r() emulation on
+       Win32. Remove a couple of unnecessary Win32-only includes.
+
 Mon Mar  8 01:06:17 2004  Matthias Clasen  <maclas@gmx.de>
 
        * tests/testentrycompletion.c: Test dynamic addition/removal. 
index 24cd1604bfd1779413f17b3d4f12e94335148452..6c76f70bcc7966fc7ec6652e55e1255ee0d8f509 100644 (file)
 #include <gtk/gtk.h>
 
 #ifdef G_OS_WIN32
-#  define WIN32_MEAN_AND_LEAN
-#  include <windows.h> /* ExtractAssociatedIcon */
 #  include <io.h>
-#  define localtime_r(t,b) localtime(t)
+#  define localtime_r(t,b) *(b) = *localtime (t)
 #  ifndef S_ISREG
 #    define S_ISREG(m) ((m) & _S_IFREG)
 #  endif
-#  include <gdk/win32/gdkwin32.h> /* gdk_win32_hdc_get */
 #endif
 
 #include "prop-editor.h"